'use strict';

const path = require('path')
module.exports = formatPath;

function formatPath(path) {

  if (path) {
    const sep = path.sep;   // 分隔符，可以兼容不一样的系统
    if (sep === '/') {
      return path
    } else {
      return path.replace(/\\/g, '/')
    }
  }
  return 'Hello from formatPath';
}
